package com.example.kehoobackend.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


@Data
@TableName(value = "follow",autoResultMap = true)
@AllArgsConstructor
@NoArgsConstructor
public class Follow {


    //关注信息ID
    @TableId(value = "follow_id",type = IdType.AUTO)
    private Integer follow_id;

    //关注者ID
    private Integer from_id;

    //被关注对象ID（用户，问题，话题）
    private Integer to_id;

    //被关注对象类型（0为用户，1为问题，2为话题）
    private Integer type;

}
